package api.cherry.feign;

import api.cherry.feign.factory.CrApiLoginServiceFactory;
import cherry.data.util.Result;
import cherry.data.view.request.CherryHomePageRequest;
import cherry.data.view.response.CherryHomePageResponse;
import com.github.pagehelper.PageInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 谢宇翔
 * @version 1.0.0
 * @ClassName CrHomepageService.java
 * @Description 远程调用查询页面接口
 * @createTime 2022年02月07日 16:52:00
 */
@FeignClient(name = "cherry-service-provide", fallbackFactory = CrApiLoginServiceFactory.class)
public interface CrApiHomepageService {


    /**
     * @ClassName CrHomepageService.java
     * @author 谢宇翔
     * @version 1.0.0
     * @Description 分页查询
     * @createTime 2022年02月07日 16:53:00
     */
    @RequestMapping(value = "/api/v1/cherry/home/findPage", method = RequestMethod.POST)
    Result<PageInfo<CherryHomePageResponse>> findPage(@RequestBody CherryHomePageRequest request);
}
